package yijy.extendsExample1;

import java.applet.Applet;
import java.awt.*;

/**
 * Created by yijy on 2017/6/7.
 */
public class C extends B {
    public void test(){
        System.out.println("C is mine");
    }

    public static void main(String[] args) {
        B b = new C();
        B b1 = new B();
        C c = new C();
        System.out.println(b=b1);
        System.out.println(b1=b);
//        System.out.println(c=(C)b);//运行异常
        System.out.println(c=(C)b1);//运行异常
        Boolean boo = true;
//        Panel p = new Frame();//编译异常Frame并不继承至Panel
        Panel p1 = new Applet();
    }

}
